Skip to content

nomadVar: return map values instead of pointers when reading map items#2133

Merged
pkazmierczak merged 1 commit intomainfrom
b-nomadVar-return-map-type
Feb 23, 2026
Merged

nomadVar: return map values instead of pointers when reading map items#2133
pkazmierczak merged 1 commit intomainfrom
b-nomadVar-return-map-type

Conversation

@pkazmierczak
Copy link
Copy Markdown
Contributor

@pkazmierczak pkazmierczak commented Feb 10, 2026

Nomad templates behave in unpredictable ways when parsing variables outside of
with blocks. See hashicorp/nomad#27455 for more context, but the gist of the
issue is that Consul Template returns pointer values when parsing map items,
and it should instead always return map values.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.

  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.

  • If applicable, I've documented the impact of any changes to security controls.

    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@pkazmierczak pkazmierczak requested review from a team as code owners February 10, 2026 17:17
@pkazmierczak pkazmierczak self-assigned this Feb 10, 2026
@pkazmierczak pkazmierczak added bug nomad Related to ingetration in Nomad labels Feb 10, 2026
Copy link
Copy Markdown
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown
Member

@krutibaraiya krutibaraiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good from a Consul perspective to me. Doesn't look like the changes affect Consul. @santoshpulluri / @kswap could you also please take a final look to confirm? Thanks!

@pkazmierczak
Copy link
Copy Markdown
Contributor Author

@santoshpulluri @kswap It's been a while and since we've already gotten 2 approvals I'm gonna go ahead and merge this. We can always revisit before the next release.

@pkazmierczak pkazmierczak merged commit b697a5f into main Feb 23, 2026
54 checks passed
@pkazmierczak pkazmierczak deleted the b-nomadVar-return-map-type branch February 23, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug nomad Related to ingetration in Nomad

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants